# coding: utf-8
from enum import Enum

from qfluentwidgets import FluentIconBase, getIconColor, Theme

from .settings import ICONS_DIR, SINGLE_ICONS_DIR


class Icon(FluentIconBase, Enum):
    SELECT = "Select"
    SETTINGS = "Settings"
    SETTINGS_FILLED = "SettingsFilled"
    CLOUD_DOWNLOAD = "CloudDownload"
    CLOUD_DOWNLOAD_FILLED = "CloudDownloadFilled"

    def path(self, theme=Theme.AUTO):
        return (ICONS_DIR / f"{self.value}_{getIconColor(theme)}.svg").as_posix()


class SingleIcon(FluentIconBase, Enum):
    LOGO_SVG = "logo.svg"
    BIRD = "bird.png"
    LENOVO = 'lenovo.ico'
    MKTP = 'mktp.ico'

    def path(self, theme=Theme.AUTO) -> str:
        return (SINGLE_ICONS_DIR / self.value).as_posix()
